package giab.weixin.web.util;

import com.google.gson.Gson;

import giab.weixin.web.xml.bean.ServerMsg;

public class JsonUtil {
	private static Gson gson = new Gson();

	public static ServerMsg getServerMsg(String data) {
		try {
			return gson.fromJson(data, ServerMsg.class);

		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
			return null;
		}
	}

}
